package edu.dali.enterprise_test.model.vo;

import java.util.List;

public class SysPermission {
    private long id;//主键.

    private String name;//权限名称.

    private String resourceType;//资源类型 【menu|button】

    private String url;//资源路径

    private String permission;//权限字符串,menu --> role:*，button--> role:create,role:update,role:delete,role:view

    private Long parentId;//父节点编号.

    private String parentIds;//父编号列表.

    private Boolean available = false;


    //权限 - 角色 多对多的关系.
    private List<SysRole> roles;//角色.

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public List<SysRole> getRoles() {
        return roles;
    }

    public void setRoles(List<SysRole> roles) {
        this.roles = roles;
    }
}
